#ifndef SENSORTHRESHOLDPARAMETERSSET_H
#define SENSORTHRESHOLDPARAMETERSSET_H

#include <QMainWindow>
#include "usermysqls.h"
#include <QSqlTableModel>
#include <QTableView>
#include <QHeaderView>
#include <QMessageBox>
#include <QVBoxLayout>
namespace Ui {
class SensorThresholdParametersSet;
}

class SensorThresholdParametersSet : public QMainWindow
{
    Q_OBJECT

public:
    explicit SensorThresholdParametersSet(QWidget *parent = nullptr);
    ~SensorThresholdParametersSet();
    static SensorThresholdParametersSet*instance();
    void displaySensorThresholdParametersSetTable();

private slots:
    void on_pushButtonConfirm_clicked();

    void on_pushButtonExit_clicked();

    void on_pushButtonRefresh_clicked();
    void on_comboBoxSensor_highlighted(int index);

private:
    void setSensorThresholdParameters(int id,int UpperLimit=-1,int LowerLimit=-1);
private:
    Ui::SensorThresholdParametersSet *ui;
    QSqlTableModel *model;
};

#endif // SENSORTHRESHOLDPARAMETERSSET_H
